package com.karson.service.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.karson.common.model.UserFavoriteRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ZKS
* @description 针对表【ar_user_favorite_record(用户收藏记录表)】的数据库操作Mapper
* @createDate 2025-09-04 14:08:51
* @Entity com.karson.common.model.UserFavoriteRecord
*/
public interface UserFavoriteRecordMapper extends BaseMapper<UserFavoriteRecord> {

    /**
     * 批量插入收藏记录
     */
    void insertBatch(@Param("list") List<UserFavoriteRecord> userFavoriteRecords);


    List<UserFavoriteRecord> selectPageList(Integer folderId, long startIndex, long size);

    void removeById(@Param("list") List<Integer> unFavoriteIds);
}




